﻿namespace MobileTrack.Core.Model
{
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Services.Common;

    [Table("Ventas")]
    [EntityPropertyMapping("Id", SyndicationItemProperty.Title, SyndicationTextContentKind.Plaintext, true)]
    public class Venta : BaseEntity
    {
        public long CelularId { get; set; }

        public long SeguimientoId { get; set; }

        public long AbonoId { get; set; }

        public bool Activado { get; set; }

        [ForeignKey("CelularId")]
        public virtual Celular Celular { get; set; }

        [ForeignKey("SeguimientoId")]
        public virtual Seguimiento Seguimiento { get; set; }

        [ForeignKey("AbonoId")]
        public virtual Abono Abono { get; set; }
    }
}
